package com.aaa.sso.feign;

import com.aaa.entity.Admin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: qy158-cai-parent
 * @description:
 * @author: 闫克起
 * @create: 2023-02-22 16:12
 **/
@FeignClient(value = "cai-system")
public interface AdminFeign {
    //建议:如果是服务之间的调用直接返回对象，如果是前端调用CommonResult
    @GetMapping("/system/admin/getByName/{name}")
    public Admin getByName(@PathVariable String name);
}
